/**
 * ******************************************************************************************************
 * @App: angularPractice
 * @author: carrie
 * @type: route
 * @src: charts.routes.ts
 * @descriptions:
 * 图表模块路由
 *
 * ******************************************************************************************************
 */
import {RouterModule} from '@angular/router';

import {ChartsComponent} from "./charts.component";
import {LineChartComponent} from "./line-chart/line-chart.component";
import {PieChartComponent} from "./pie-chart/pie-chart.component";
import {BarChartComponent} from "./bar-chart/bar-chart.component";
import {GaugeComponent} from "./gauge/gauge.component";

export const chartsRoutes = [
  {
    path: 'charts',
    component: ChartsComponent,
    children: [
      {
        path: '',
        redirectTo: 'lineChart',
        pathMatch: 'full'
      },
      {
        path: 'lineChart',
        component: LineChartComponent
      },
      {
        path: 'pieChart',
        component: PieChartComponent
      },
      {
        path: 'barChart',
        component: BarChartComponent
      },
      {
        path: 'gauge',
        component: GaugeComponent
      }
    ]
  }

];
